package io.ede.modules.ede.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.ede.common.utils.PageUtils;
import io.ede.common.utils.Query;

import io.ede.modules.ede.dao.ControlDao;
import io.ede.modules.ede.entity.ControlEntity;
import io.ede.modules.ede.service.ControlService;


@Service("controlService")
public class ControlServiceImpl extends ServiceImpl<ControlDao, ControlEntity> implements ControlService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ControlEntity> page = this.page(
                new Query<ControlEntity>().getPage(params),
                new QueryWrapper<ControlEntity>()
        );

        return new PageUtils(page);
    }

}
